public class Test {

    public static void main(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree();
        testBinaryTree.preOrder2(root);
        System.out.println();
        testBinaryTree.preOrder(root);
        System.out.println();
        testBinaryTree.inOrder(root);
        System.out.println();
        testBinaryTree.inOrder2(root);
        System.out.println();
        System.out.println("--------");
        testBinaryTree.postOrder2(root);

    }

    public static void main4(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree();
        System.out.println(testBinaryTree.isCompleteTree(root));
    }

    public static void main3(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree();
        testBinaryTree.levelOrder(root);
        System.out.println();
        System.out.println(testBinaryTree.leveOrder2(root));
    }

    public static void main2(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree();
        System.out.println(testBinaryTree.find(root, 'K'));
    }

    public static void main1(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree();
        testBinaryTree.preOrder(root);
        System.out.println();
        testBinaryTree.inOrder(root);
        System.out.println();
        testBinaryTree.postOrder(root);
        System.out.println();
        System.out.println(testBinaryTree.size(root));
        testBinaryTree.size2(root);
        System.out.println(testBinaryTree.nodeSize);
        System.out.println(testBinaryTree.getLeafNodeCount(root));
        System.out.println(testBinaryTree.getKLeveNodeCount(root, 2));
        System.out.println(testBinaryTree.getTreeHeight(root));

    }

}
